6. Working with DynamoDB using AWS CLI

37. Installing the AWS CLI#

38. Table level Operations with AWS CLI#

$ aws dynamodb list-tables
{
"TableNames": [
"td_notes"
]
}
$ aws dynamodb describe-table help
$ aws dynamodb describe-table --table-name td_notes
{
"Table": {
"AttributeDefinitions": [
{
"AttributeName": "cat",
"AttributeType": "S"
},
{
"AttributeName": "note_id",
"AttributeType": "S"
},
{
"AttributeName": "timestamp",
"AttributeType": "N"
},
{
"AttributeName": "title",
"AttributeType": "S"
},
{
"AttributeName": "user_id",
"AttributeType": "S"
}
],
"TableName": "td_notes",
"KeySchema": [
{
"AttributeName": "user_id",
"KeyType": "HASH"
},
{
"AttributeName": "timestamp",
"KeyType": "RANGE"
}
],
"TableStatus": "ACTIVE",
"CreationDateTime": "2022-04-12T00:08:14.752000+09:00",
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
},
"TableSizeBytes": 117,
"ItemCount": 1,
# ...

39. Write Operations - Item level Operations with AWS CLI#

40. Read Operations - Item level Operations with AWS CLI#

Last updated on